﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using LitJson;

namespace RichECMS.news
{
    public partial class TuCe : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string strReq = Request["uuid"] ?? "";
            //strReq = strReq.Replace("style_id_", "");
            if (!ValidateCommon.ParamAuth.IsNumber(strReq))
            {
                strReq = "-1";
            }
            Response.AddHeader("Content-Type", "application/json; charset=UTF-8");
            Response.Write(BuilderResponse(strReq));
            Response.End();
            return;
        }

        protected string BuilderResponse(string intsectionid)
        {
            Hashtable objHashTable = new Hashtable();

            Hashtable objOne = new Hashtable();
            objOne["filmstrip"] = false;
            objOne["created_at"] = "2012-12-19T18:47:29Z";
            objOne["updated_at"] = "2012-12-19T18:47:29Z";
            objOne["id"] = intsectionid;
            objOne["internal_name"] = intsectionid;
            objOne["publish_date"] = "2012-12-19T18:47:29Z";
            objOne["article_content_type_id"] = "2";
            objOne["article_size"] = "720 x 419";

            Hashtable objstyle_wrappers = new Hashtable();
            objHashTable["article"] = objOne;

            return JsonMapper.ToJson(objHashTable);
        }
    }
}